:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --background-color: #2f3542;
    --text-color: #f1f2f6;
    --card-bg: rgba(255, 255, 255, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.75);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* 头部样式保持不变 */

.games-hero {
    height: 40vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.9);
}

.search-box button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0 30px 30px 0;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-section {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    color: #ccc;
}

.filter-group select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(0,0,0,0.3);
    color: white;
    cursor: pointer;
}

.games-grid {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .card-overlay {
    opacity: 1;
}

.rating {
    text-align: center;
    margin-bottom: 1rem;
}

.score {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stars {
    color: gold;
}

.view-details {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-content {
    padding: 1.5rem;
}

.platforms {
    margin-bottom: 1rem;
}

.platforms i {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: #ccc;
}

.genre {
    color: #ccc;
    margin: 0.5rem 0;
}

.meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination button {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button.active {
    background: var(--primary-color);
}

.pagination button:hover:not(.active) {
    background: rgba(255,255,255,0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
} 

/* 写测评按钮样式 */
.card-actions {
    display: flex;
    gap: 1rem;
}

.write-review {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.write-review:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* 复用 reviews.css 中的测评模态框样式 */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

/* 其他测评相关样式... */ 